PARTICLES POSITION Z

This command will return the Z position of the particles object in 3D world space.

  Syntax
Return Float=PARTICLES POSITION Z(Particle Number)
  Parameters
Particle Number
Integer
The particle object number

  Returns

This command will return the Z position of the particles object in 3D world space

  Example Code
load image "snow.bmp",1
make snow particles1, 1, 500,-5,5,5, 10,10,10
position particles 1,0,0,0
print "position particles x ",particles position x(1)
print "position particles y ",particles position y(1)
print "position particles z ",particles position z(1)
do
loop
delete particles 1
end
  See also

PARTICLES Commands Menu
Index